package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.ShopInOrderAfterSalesListBeen;
import cn.xfdzx.android.apps.shop.bean.ShopInPiFaOrderAfterSalesListBeen;
import cn.xfdzx.android.apps.shop.bean.ShopOrderListBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface ShopInOrderAfterSalesListContract {
    interface Model {
        Flowable<ShopInOrderAfterSalesListBeen> initData(String storeId,String salesMode, String status, String keyWord, String page, String limit);
        Flowable<ShopInPiFaOrderAfterSalesListBeen> initPifaData(String storeId,   String keyWord, String page, String limit);
        }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onShopInOrderAfterSalesListSuccess(ShopInOrderAfterSalesListBeen bean);
        void onPifaShopInOrderAfterSalesListSuccess(ShopInPiFaOrderAfterSalesListBeen bean);

        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();

         }

    interface Presenter {
        /**
         * 商家获取申请售后列表
         */
        void initData(boolean isRefresh, boolean isLoading, String storeId,String salesMode, String status, String keyWord, String page, String limit);
        void initPifaData(boolean isRefresh, boolean isLoading, String storeId,  String keyWord, String page, String limit);


    }
}
